{* Smarty *}

<div class="admin_menu">
  <ul>
		<!-- Access Control -->
		{if isset($accesscontrol)}
		<li class="active"><a href="/admin/accesscontrol">{t}Access control{/t}</a></li>
	</ul>
			<div class="admin_sub_menu">
	      <ul>
	        {foreach from=$accesscontrol item=access}
	        <li{if ($active == $access)} class="active"{/if}><a href="/admin/accesscontrol/{$access}">{t}{$access}{/t}</a></li>
	        {/foreach}
	       </ul>
	    </div>
	<ul>
	  {else}
	  <li><a href="/admin/accesscontrol">{t}Access control{/t}</a></li>
	  {/if}
  <!-- end Access Control -->
	<!-- Modules -->
		{if isset($modules)}
		<li class="active2"><a href="/admin/modules">{t}Modules{/t}</a></li>
  </ul>
    <div class="admin_sub_menu">
		  <ul>
			{foreach from=$modules_options item=option}
	      <li{if ($active == $option)} class="active"{/if}><a href="/admin/modules/{$option}">{t}{$option}{/t}</a></li>
	    {/foreach}
			</ul>
    </div>
  <ul>
		{else}
		<li><a href="/admin/modules">{t}Modules{/t}</a></li>
		{/if}
	<!-- End Modules -->
	<!-- Config -->
		{if isset($config)}
		<li class="active"><a href="/admin/config">{t}Configuration{/t}</a></li>
	</ul>
			<div class="admin_sub_menu">
	      <ul>
	        {foreach from=$config item=conf}
	        <li{if ($active == $conf)} class="active"{/if}><a href="/admin/config/{$conf}">{t}{$conf}{/t}</a></li>
	        {/foreach}
	       </ul>
	    </div>
	<ul>
	  {else}
	  <li><a href="/admin/config">{t}Configuration{/t}</a></li>
	  {/if}
  <!-- end Access Control -->
  <!-- home -->
		{if isset($home)}
		<li class="active2"><a href="/user/home">Home</a></li>
		{else}
		<li><a href="/user/home">Home</a></li>
		{/if}
	 <!-- end home -->
	</ul>
</div>
<br/>